package com.fernandomartines.dbcheck.app.view;

public class TestSuiteContentView extends javax.swing.JPanel {

    public TestSuiteContentView() {
        initComponents();
    }

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        labelTitleTestSuites = new javax.swing.JLabel();
        labelTitleTestCases = new javax.swing.JLabel();
        textTestSuiteDetails = new javax.swing.JLabel();
        buttonEdit = new javax.swing.JButton();
        buttonExecuteTestCases = new javax.swing.JButton();
        buttonDelete = new javax.swing.JButton();
        buttonGenerateTestCases = new javax.swing.JButton();
        panelTestCases = new javax.swing.JPanel();
        scrollTestCases = new javax.swing.JScrollPane();
        tableTestCases = new javax.swing.JTable();
        panelTestCaseDetails = new javax.swing.JPanel();
        textPassRate = new javax.swing.JLabel();
        labelTestCycleDetails = new javax.swing.JLabel();

        labelTitleTestSuites.setBackground(new java.awt.Color(150, 150, 150));
        labelTitleTestSuites.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("com/fernandomartines/dbcheck/app/view/Bundle"); // NOI18N
        labelTitleTestSuites.setText(bundle.getString("DBCheckView.labelTestSuites.text")); // NOI18N
        labelTitleTestSuites.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(75, 75, 75), 1, true));
        labelTitleTestSuites.setOpaque(true);

        labelTitleTestCases.setBackground(new java.awt.Color(175, 175, 175));
        labelTitleTestCases.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        labelTitleTestCases.setText(" Test Cases");
        labelTitleTestCases.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        labelTitleTestCases.setOpaque(true);

        textTestSuiteDetails.setFont(new java.awt.Font("Tahoma", 1, 12));
        textTestSuiteDetails.setText("<html>000<br>AAA");

        buttonEdit.setMnemonic('E');
        buttonEdit.setText(bundle.getString("DBCheckView.buttonCreateTestSuite.text")); // NOI18N

        buttonExecuteTestCases.setMnemonic('C');
        buttonExecuteTestCases.setText("Execute Test Cases");

        buttonDelete.setMnemonic('D');
        buttonDelete.setText("Delete");

        buttonGenerateTestCases.setMnemonic('G');
        buttonGenerateTestCases.setText("Generante Test Cases");

        panelTestCases.setBackground(new java.awt.Color(220, 220, 220));
        panelTestCases.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
        panelTestCases.setLayout(new java.awt.BorderLayout());

        scrollTestCases.setBackground(new java.awt.Color(255, 255, 255));

        tableTestCases.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        tableTestCases.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tableTestCases.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
        scrollTestCases.setViewportView(tableTestCases);

        panelTestCases.add(scrollTestCases, java.awt.BorderLayout.CENTER);

        panelTestCaseDetails.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 5, 0));
        panelTestCaseDetails.setOpaque(false);
        panelTestCaseDetails.setPreferredSize(new java.awt.Dimension(577, 25));
        panelTestCaseDetails.setLayout(new java.awt.BorderLayout());

        textPassRate.setBackground(new java.awt.Color(200, 200, 200));
        textPassRate.setFont(new java.awt.Font("Lucida Console", 1, 14));
        textPassRate.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        textPassRate.setText(null);
        textPassRate.setOpaque(true);
        textPassRate.setPreferredSize(new java.awt.Dimension(75, 0));
        panelTestCaseDetails.add(textPassRate, java.awt.BorderLayout.EAST);

        labelTestCycleDetails.setFont(new java.awt.Font("Tahoma", 0, 12));
        labelTestCycleDetails.setText("<html><b>TOTAL:</b>&nbsp;Passed:&nbsp;<font color=#009900><b>0</b></font>&nbsp;Failed:&nbsp;<font color=#990000><b>0</b></font>");
        panelTestCaseDetails.add(labelTestCycleDetails, java.awt.BorderLayout.CENTER);

        panelTestCases.add(panelTestCaseDetails, java.awt.BorderLayout.PAGE_START);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(panelTestCases, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 858, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(labelTitleTestSuites, javax.swing.GroupLayout.DEFAULT_SIZE, 444, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonEdit)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonDelete)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonGenerateTestCases)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonExecuteTestCases))
                    .addComponent(labelTitleTestCases, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 858, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(textTestSuiteDetails, javax.swing.GroupLayout.DEFAULT_SIZE, 848, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(labelTitleTestSuites, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonExecuteTestCases, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonGenerateTestCases, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonDelete, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(buttonEdit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(textTestSuiteDetails, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(labelTitleTestCases)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelTestCases, javax.swing.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonDelete;
    private javax.swing.JButton buttonEdit;
    private javax.swing.JButton buttonExecuteTestCases;
    private javax.swing.JButton buttonGenerateTestCases;
    private javax.swing.JLabel labelTestCycleDetails;
    private javax.swing.JLabel labelTitleTestCases;
    private javax.swing.JLabel labelTitleTestSuites;
    private javax.swing.JPanel panelTestCaseDetails;
    private javax.swing.JPanel panelTestCases;
    private javax.swing.JScrollPane scrollTestCases;
    private javax.swing.JTable tableTestCases;
    private javax.swing.JLabel textPassRate;
    private javax.swing.JLabel textTestSuiteDetails;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the buttonExecuteTestCases
     */
    public javax.swing.JButton getButtonExecuteTestCases() {
        return buttonExecuteTestCases;
    }

    /**
     * @param buttonCreateTestSuite the buttonExecuteTestCases
     */
    public void setButtonExecuteTestCases(javax.swing.JButton buttonExecuteTestCases) {
        this.buttonExecuteTestCases = buttonExecuteTestCases;
    }

    /**
     * @return the buttonDelete
     */
    public javax.swing.JButton getButtonDelete() {
        return buttonDelete;
    }

    /**
     * @param buttonDelete the buttonDelete to set
     */
    public void setButtonDelete(javax.swing.JButton buttonDelete) {
        this.buttonDelete = buttonDelete;
    }

    /**
     * @return the buttonEdit
     */
    public javax.swing.JButton getButtonEdit() {
        return buttonEdit;
    }

    /**
     * @param buttonEdit the buttonEdit to set
     */
    public void setButtonEdit(javax.swing.JButton buttonEdit) {
        this.buttonEdit = buttonEdit;
    }

    /**
     * @return the buttonGenerateTestCases
     */
    public javax.swing.JButton getButtonGenerateTestCases() {
        return buttonGenerateTestCases;
    }

    /**
     * @param buttonGenerateTestCases the buttonGenerateTestCases to set
     */
    public void setButtonGenerateTestCases(javax.swing.JButton buttonGenerateTestCases) {
        this.buttonGenerateTestCases = buttonGenerateTestCases;
    }

    /**
     * @return the textPassRate
     */
    public javax.swing.JLabel getTextPassRate() {
        return textPassRate;
    }

    /**
     * @param labelPassRate the labelPassRate to set
     */
    public void setTextPassRate(javax.swing.JLabel textPassRate) {
        this.textPassRate = textPassRate;
    }

    /**
     * @return the labelTestCycleDetails
     */
    public javax.swing.JLabel getLabelTestCycleDetails() {
        return labelTestCycleDetails;
    }

    /**
     * @param labelTestCycleDetails the labelTestCycleDetails to set
     */
    public void setLabelTestCycleDetails(javax.swing.JLabel labelTestCycleDetails) {
        this.labelTestCycleDetails = labelTestCycleDetails;
    }

    /**
     * @return the labelTitleTestCases
     */
    public javax.swing.JLabel getLabelTitleTestCases() {
        return labelTitleTestCases;
    }

    /**
     * @param labelTitleTestCases the labelTitleTestCases to set
     */
    public void setLabelTitleTestCases(javax.swing.JLabel labelTitleTestCases) {
        this.labelTitleTestCases = labelTitleTestCases;
    }

    /**
     * @return the labelTitleTestSuites
     */
    public javax.swing.JLabel getLabelTitleTestSuites() {
        return labelTitleTestSuites;
    }

    /**
     * @param labelTitleTestSuites the labelTitleTestSuites to set
     */
    public void setLabelTitleTestSuites(javax.swing.JLabel labelTitleTestSuites) {
        this.labelTitleTestSuites = labelTitleTestSuites;
    }

    /**
     * @return the panelTestCaseDetails
     */
    public javax.swing.JPanel getPanelTestCaseDetails() {
        return panelTestCaseDetails;
    }

    /**
     * @param panelTestCaseDetails the panelTestCaseDetails to set
     */
    public void setPanelTestCaseDetails(javax.swing.JPanel panelTestCaseDetails) {
        this.panelTestCaseDetails = panelTestCaseDetails;
    }

    /**
     * @return the panelTestCases
     */
    public javax.swing.JPanel getPanelTestCases() {
        return panelTestCases;
    }

    /**
     * @param panelTestCases the panelTestCases to set
     */
    public void setPanelTestCases(javax.swing.JPanel panelTestCases) {
        this.panelTestCases = panelTestCases;
    }

    /**
     * @return the scrollTestCases
     */
    public javax.swing.JScrollPane getScrollTestCases() {
        return scrollTestCases;
    }

    /**
     * @param scrollTestCases the scrollTestCases to set
     */
    public void setScrollTestCases(javax.swing.JScrollPane scrollTestCases) {
        this.scrollTestCases = scrollTestCases;
    }

    /**
     * @return the tableTestCases
     */
    public javax.swing.JTable getTableTestCases() {
        return tableTestCases;
    }

    /**
     * @param tableTestCases the tableTestCases to set
     */
    public void setTableTestCases(javax.swing.JTable tableTestCases) {
        this.tableTestCases = tableTestCases;
    }

    public void refreshTableTestCases() {
        this.scrollTestCases.removeAll();
        this.scrollTestCases.add(this.tableTestCases);
        this.repaint();
    }

    /**
     * @return the textTestSuiteDetails
     */
    public javax.swing.JLabel getTextTestSuiteDetails() {
        return textTestSuiteDetails;
    }

    /**
     * @param textTestSuiteDetails the textTestSuiteDetails to set
     */
    public void setTextTestSuiteDetails(javax.swing.JLabel textTestSuiteDetails) {
        this.textTestSuiteDetails = textTestSuiteDetails;
    }

}
